package com.itheima.service;

import com.itheima.pojo.OmsOrderOperateHistory;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsOrderOperateHistoryService {
    @DubboReference
    private OrderHistoryApi orderHistoryApi;
    /**
     * 保存操作记录到表中
     *
     * @param omsOrderOperateHistory
     */
    public void save(OmsOrderOperateHistory omsOrderOperateHistory) {
        orderHistoryApi.save(omsOrderOperateHistory);
    }

    public List<OmsOrderOperateHistory> findByOrderId(Integer id) {
       return orderHistoryApi.findByOrderId(id);
    }
}
